package com.online_video.service.impl;

import com.online_video.dao.CommentDao;
import com.online_video.dao.impl.CommentDaoImpl;
import com.online_video.entity.Comment;
import com.online_video.service.CommentService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 黄金星
 * @Date: 2022/03/21/下午8:21
 * @Description:
 */
public class CommentServiceImpl implements CommentService {
    CommentDao commentDao = new CommentDaoImpl();
    @Override
    public int insert(Comment comment) {
        int insert = commentDao.insert(comment);
        return insert;
    }

    @Override
    public int update(Comment comment) {
        return 0;
    }

    @Override
    public int delete(Integer id) {
        return 0;
    }

    @Override
    public List<Comment> queryByVid(Integer vId) {
        return commentDao.queryByVid(vId);
    }
}
